package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 备件级别
 * @ClassName: com.xframe.domain.e3sp.basedata.PartLevel
 * @Author: xufeng
 * @CreateTime: 2023/11/27
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t01_partlevel", label = "备件级别")
@XSelectItem(keyName = "partlevelId",codeName = "partlevelCode",textName = "name")
public class PartLevel extends BaseModel {
    /**
     * 备件级别ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "partlevel_id", primaryKeyFlag = true,desc = "备件级别ID")
    private Long partlevelId;

    /**
     * 备件级别编码
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "partlevel_code", uniqueFlag = true,desc = "备件级别编码",length = 200)
    private String partlevelCode;


    /**
     * 中文名称
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "cn_name",desc = "备件级别名称",length = 200)
    private String name;

    /**
     * 备件级别备注
     */
    @XColumn(name = "remark",desc = "备件级别备注",length = 500,nullFlag = true)
    private String remark;
}
